﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Network
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;
using System.ComponentModel;

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>The network class is at the heart of the network implementation and provides the core functions.</para>
  /// </summary>
  [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
  [EditorBrowsable(EditorBrowsableState.Never)]
  public class Network
  {
    /// <summary>
    ///   <para>Initialize the server.</para>
    /// </summary>
    /// <param name="connections"></param>
    /// <param name="listenPort"></param>
    /// <param name="useNat"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static NetworkConnectionError InitializeServer(
      int connections,
      int listenPort,
      bool useNat)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Initialize the server.</para>
    /// </summary>
    /// <param name="connections"></param>
    /// <param name="listenPort"></param>
    /// <param name="useNat"></param>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static NetworkConnectionError InitializeServer(int connections, int listenPort)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Set the password for the server (for incoming connections).</para>
    /// </summary>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static string incomingPassword
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>Set the log level for network messages (default is Off).</para>
    /// </summary>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static NetworkLogLevel logLevel
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>Initializes security layer.</para>
    /// </summary>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static void InitializeSecurity()
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Connect to the specified host (ip or domain name) and server port.</para>
    /// </summary>
    /// <param name="IP"></param>
    /// <param name="remotePort"></param>
    /// <param name="password"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static NetworkConnectionError Connect(string IP, int remotePort)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Connect to the specified host (ip or domain name) and server port.</para>
    /// </summary>
    /// <param name="IP"></param>
    /// <param name="remotePort"></param>
    /// <param name="password"></param>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static NetworkConnectionError Connect(string IP, int remotePort, string password)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>This function is exactly like Network.Connect but can accept an array of IP addresses.</para>
    /// </summary>
    /// <param name="IPs"></param>
    /// <param name="remotePort"></param>
    /// <param name="password"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static NetworkConnectionError Connect(string[] IPs, int remotePort)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>This function is exactly like Network.Connect but can accept an array of IP addresses.</para>
    /// </summary>
    /// <param name="IPs"></param>
    /// <param name="remotePort"></param>
    /// <param name="password"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static NetworkConnectionError Connect(string[] IPs, int remotePort, string password)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Connect to a server GUID. NAT punchthrough can only be performed this way.</para>
    /// </summary>
    /// <param name="GUID"></param>
    /// <param name="password"></param>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static NetworkConnectionError Connect(string GUID)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Connect to a server GUID. NAT punchthrough can only be performed this way.</para>
    /// </summary>
    /// <param name="GUID"></param>
    /// <param name="password"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static NetworkConnectionError Connect(string GUID, string password)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Connect to the host represented by a HostData structure returned by the Master Server.</para>
    /// </summary>
    /// <param name="hostData"></param>
    /// <param name="password"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static NetworkConnectionError Connect(HostData hostData)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Connect to the host represented by a HostData structure returned by the Master Server.</para>
    /// </summary>
    /// <param name="hostData"></param>
    /// <param name="password"></param>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static NetworkConnectionError Connect(HostData hostData, string password)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Close all open connections and shuts down the network interface.</para>
    /// </summary>
    /// <param name="timeout"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static void Disconnect()
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Close all open connections and shuts down the network interface.</para>
    /// </summary>
    /// <param name="timeout"></param>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static void Disconnect(int timeout)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Close the connection to another system.</para>
    /// </summary>
    /// <param name="target"></param>
    /// <param name="sendDisconnectionNotification"></param>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static void CloseConnection(NetworkPlayer target, bool sendDisconnectionNotification)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>All connected players.</para>
    /// </summary>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static NetworkPlayer[] connections
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>Get the local NetworkPlayer instance.</para>
    /// </summary>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static NetworkPlayer player
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>Query for the next available network view ID number and allocate it (reserve).</para>
    /// </summary>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static NetworkViewID AllocateViewID()
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Network instantiate a Prefab.</para>
    /// </summary>
    /// <param name="prefab"></param>
    /// <param name="position"></param>
    /// <param name="rotation"></param>
    /// <param name="group"></param>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static Object Instantiate(
      Object prefab,
      Vector3 position,
      Quaternion rotation,
      int group)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Destroy the object associated with this view ID across the network.</para>
    /// </summary>
    /// <param name="viewID"></param>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static void Destroy(NetworkViewID viewID)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Destroy the object across the network.</para>
    /// </summary>
    /// <param name="gameObject"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static void Destroy(GameObject gameObject)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Destroy all the objects based on view IDs belonging to this player.</para>
    /// </summary>
    /// <param name="playerID"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static void DestroyPlayerObjects(NetworkPlayer playerID)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Remove all RPC functions which belong to this player ID.</para>
    /// </summary>
    /// <param name="playerID"></param>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static void RemoveRPCs(NetworkPlayer playerID)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Remove all RPC functions which belong to this player ID and were sent based on the given group.</para>
    /// </summary>
    /// <param name="playerID"></param>
    /// <param name="group"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static void RemoveRPCs(NetworkPlayer playerID, int group)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Remove the RPC function calls accociated with this view ID number.</para>
    /// </summary>
    /// <param name="viewID"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static void RemoveRPCs(NetworkViewID viewID)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Remove all RPC functions which belong to given group number.</para>
    /// </summary>
    /// <param name="group"></param>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static void RemoveRPCsInGroup(int group)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Returns true if your peer type is client.</para>
    /// </summary>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static bool isClient
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>Returns true if your peer type is server.</para>
    /// </summary>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static bool isServer
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>The status of the peer type, i.e. if it is disconnected, connecting, server or client.</para>
    /// </summary>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static NetworkPeerType peerType
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>Set the level prefix which will then be prefixed to all network ViewID numbers.</para>
    /// </summary>
    /// <param name="prefix"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static void SetLevelPrefix(int prefix)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>The last ping time to the given player in milliseconds.</para>
    /// </summary>
    /// <param name="player"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static int GetLastPing(NetworkPlayer player)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>The last average ping time to the given player in milliseconds.</para>
    /// </summary>
    /// <param name="player"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static int GetAveragePing(NetworkPlayer player)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>The default send rate of network updates for all Network Views.</para>
    /// </summary>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static float sendRate
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>Enable or disable the processing of network messages.</para>
    /// </summary>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static bool isMessageQueueRunning
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>Enable or disables the reception of messages in a specific group number from a specific player.</para>
    /// </summary>
    /// <param name="player"></param>
    /// <param name="group"></param>
    /// <param name="enabled"></param>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static void SetReceivingEnabled(NetworkPlayer player, int group, bool enabled)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Enables or disables transmission of messages and RPC calls on a specific network group number.</para>
    /// </summary>
    /// <param name="group"></param>
    /// <param name="enabled"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static void SetSendingEnabled(int group, bool enabled)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Enable or disable transmission of messages and RPC calls based on target network player as well as the network group.</para>
    /// </summary>
    /// <param name="player"></param>
    /// <param name="group"></param>
    /// <param name="enabled"></param>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static void SetSendingEnabled(NetworkPlayer player, int group, bool enabled)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Get the current network time (seconds).</para>
    /// </summary>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static double time
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>Get or set the minimum number of ViewID numbers in the ViewID pool given to clients by the server.</para>
    /// </summary>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static int minimumAllocatableViewIDs
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static bool useNat
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>The IP address of the NAT punchthrough facilitator.</para>
    /// </summary>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static string natFacilitatorIP
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>The port of the NAT punchthrough facilitator.</para>
    /// </summary>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static int natFacilitatorPort
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>Test this machines network connection.</para>
    /// </summary>
    /// <param name="forceTest"></param>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static ConnectionTesterStatus TestConnection()
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Test this machines network connection.</para>
    /// </summary>
    /// <param name="forceTest"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static ConnectionTesterStatus TestConnection(bool forceTest)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Test the connection specifically for NAT punch-through connectivity.</para>
    /// </summary>
    /// <param name="forceTest"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static ConnectionTesterStatus TestConnectionNAT()
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Test the connection specifically for NAT punch-through connectivity.</para>
    /// </summary>
    /// <param name="forceTest"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static ConnectionTesterStatus TestConnectionNAT(bool forceTest)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>The IP address of the connection tester used in Network.TestConnection.</para>
    /// </summary>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static string connectionTesterIP
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>The port of the connection tester used in Network.TestConnection.</para>
    /// </summary>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static int connectionTesterPort
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>Check if this machine has a public IP address.</para>
    /// </summary>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static bool HavePublicAddress()
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Set the maximum amount of connections/players allowed.</para>
    /// </summary>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static int maxConnections
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>The IP address of the proxy server.</para>
    /// </summary>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static string proxyIP
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>The port of the proxy server.</para>
    /// </summary>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static int proxyPort
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>Indicate if proxy support is needed, in which case traffic is relayed through the proxy server.</para>
    /// </summary>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static bool useProxy
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>Set the proxy server password.</para>
    /// </summary>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static string proxyPassword
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }
  }
}
